import request from '@/api/request2.js'
//获取openid
function getopenid(data){
	return request({
		url: '/api/wechatminiprogram/getToken',
		method: 'post',
		data
	})
}
//获取用户信息
function getuserinfo(data){
	return request({
		url: '/api/wechatminiprogram/getUserInfos',
		method: 'get',
		data
	})
}
function getuserinfoo(data){
	return request({
		url: '/api/wechatminiprogram/getUserInfos',
		method: 'get',
		data
	})
}
//注册
function register(data){
	return request({
		url: '/api/alipayminiprogram/creatUserInfo',
		method: 'post',
		data
	})
}
//添加子档案
function addcard(data){
	return request({
		url: '/api/alipayminiprogram/addFamily',
		method: 'post',
		data
	})
}
//删除子档案
function delcard(data){
	return request({
		url: '/api/alipayminiprogram/delFamily',
		method: 'post',
		data
	})
}
//更新手机号
function newphone(data){
	return request({
		url: '/api/wechatminiprogram/editUserInfoPhone',
		method: 'post',
		data
	})
}
//获取手机号
function getphonecode(data){
	return request({
		url: '/api/wechatminiprogram/sencode',
		method: 'post',
		data
	})
}
//添加健康卡
function addjiancard(data){
	return request({
		url: '/api/wechatminiprogram/creatUserInfo',
		method: 'post',
		data
	})
}
function addjiancardd(data){
	return request({
		url: '/api/wechatminiprogram/addFamily',
		method: 'post',
		data
	})
}
//获取微信健康卡详情
function getweicard(data){
	return request({
		url: '/api/wechatminiprogram/getHealthCardbinding',
		method: 'post',
		data
	})
}
//删除子档案
function delzidang(data){
	return request({
		url: '/api/wechatminiprogram/delFamily',
		method: 'post',
		data
	})
}
//升级健康卡
function shengjiapi(data){
	return request({
		url: '/api/wechatminiprogram/upgradeHealthCard',
		method: 'post',
		data
	})
}

//上报电子健康卡数据
function updatedata(data){
	return request({
		url: '/api/nrhc/reportHISData',
		method: 'post',
		data
	})
}
export default {
	updatedata,
	shengjiapi,
	delzidang,
	addjiancardd,
	getweicard,
	addjiancard,
	getphonecode,
	getopenid,
	register,
	getuserinfo,
	addcard,
	delcard,
	newphone,
	getuserinfoo
	
}